import request from '../untils/httpService'

// 获取预约平台列表信息
export const getReservePlatformList = () => {
  return request.get('/api/index/gz_platforms');
}

// 单个账号查询
export const getSingleWinner = () => {
  // name=liwei&phone=111&id_number=1111
  return request.get('/api/index/single_winner')
}

// 多个账号查询
export const getBatchWinner = (params) => {
  return request.get('/api/index/batch_winner', { params });
}

// 存贮单个账号信息
export const saveSingleInfo = (data) => {
  // name=222&phone=13666666666&id_number=511111111111111111
  return request.post('/api/gz_account/add', { data });
}

// 葫芦娃账号列表
export const getAccountList = () => {
  return request.get('/api/gz_account/list');
}